import LeftTable, { CommitUserColumns } from '@/pages/Admin/components/LeftTable';
import RightTable from '@/pages/Admin/components/RightTable';
import { ProCard } from '@ant-design/pro-components';
import { useState } from 'react';

const Index = () => {
  const [clickUser, setClickUser] = useState({} as CommitUserColumns);
  const onClickRow = (clickUser: CommitUserColumns) => {
    setClickUser(clickUser);
  };
  return (
    <ProCard split="vertical">
      <ProCard colSpan="50%" ghost>
        <LeftTable onClickRow={onClickRow}/>
      </ProCard>
      <ProCard ghost>
        <RightTable clickUser={clickUser} />
      </ProCard>
    </ProCard>
  );
};

export default Index;
